import { http } from "@/uni-sub-base/service/request.js"
let serviceName = "Web/"
import { getBaseUrls } from "@/utils/appUrl.js"
//获取信息
export function getInitWebInfo(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "getInitWebInfo?domain=" + data.domain,
        data,
    })
}

//检查版本
export function GetAppSetting(path) {
    return http.get({
        url: getBaseUrls().basePublicUrl + serviceName + "GetAppSetting" + path,
    })
}
//获取商户id对应的接口地址
// export function GetGuideApiUrl(data, path) {
//     return http.post({
//         url: getBaseUrls().ssoUrl + serviceName + "GetGuideApiUrl" + path,
//         data,
//     })
// }

export function GetGuideApiUrl(path) {
    return http.post({
        url: "https://ylscapi.heleasy.cn/api/Web/GetGuideApiUrl" + path,
    })
}

//获取区域控件获取列表
export function GetCountrywideTree(param, path) {
    console.log(path)
    return http.post({
        url: getBaseUrls().basePublicUrl + serviceName + "GetCountrywideTree" + path,
        data: param,
    })
}
